package com.gl.emms.whale.app;

import com.gl.emms.whale.bean.UserData;

import android.app.Application;

public class MyApplication extends Application {
	
	private static MyApplication instance ;
	private static UserData userData ;
	public static MyApplication getInstance() {
		if(instance==null){
			//EIMLogger.INFO("正在初始化服务器的缓存组件....");
			instance = new  MyApplication();
		}
		return instance;
	}
	public static UserData getUserData() {
		if(userData==null){
			//EIMLogger.INFO("正在初始化服务器的缓存组件....");
			userData = new  UserData();
		}
		return userData;
	}
	public void onCreate(){
		getInstance();
		getUserData();
		userData.setName("");
		userData.setIsOnline(false);
		userData.setId("0");
		super.onCreate();  
	}
}
